# -*- coding: utf-8 -*-

"""
DateTime   : 2020/11/21 21:06
Author     : ZhangYafei
Description: 
"""
""" 1. 基本条件语句 if else"""
age = 23
if age >= 18:
    print('成年了，可以去网吧了！')
else:
    print('你还小，学习最重要。')

""" 2. 多条件判断 if elif else """
day = 3
if day == 1:
    print('今天是周一，加油，打工人。')
elif day == 2:
    print('今天是周二')
else:
    print('周末了，好开心，干饭去。')

day = int(input('请输入一个数字（1-7）:'))
if day == 1:
    print('星期一')
elif day == 2:
    print('星期二')
elif day == 3:
    print('星期三')
elif day == 4:
    print('星期四')
elif day == 5:
    print('星期五')
elif day == 6:
    print('星期六')
elif day == 7:
    print('星期日')
else:
    print('数字不能超过7')

""" 3. 条件嵌套 """
username = 'trump'
password = 'banden'

if username == 'trump':
    if password == 'banden':
        print('胜选')
    else:
        print('小可爱，换个职业吧。')
else:
    print('用户名错误')


username = '管理员1'
pwd = '666'
if username == '管理员':
    if pwd == '666':
        print('登录成功')
    else:
        print('密码输入错误')
else:
    print('用户名错误')
